package com.totoro.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.totoro.dao.BaseHibernateDao;
import com.totoro.dao.ResourceDao;
import com.totoro.domain.Resource;

@Transactional
@Service
public class ResourceService extends BaseService<Resource, Integer> {

	private ResourceDao resourceDao;

	public ResourceService() {

	}

	@Autowired
	@Override
	public void setBaseDao(BaseHibernateDao<Resource, Integer> resourceDao) {
		// TODO Auto-generated method stub
		this.baseDao = resourceDao;
		this.resourceDao = (ResourceDao) resourceDao;
	}

}
